
package com.wyzz.hr.action;

import java.util.ArrayList;
import java.util.List;

import com.wyzz.hr.base.BaseAction;
import com.wyzz.hr.bo.IDepartmentBO;
import com.wyzz.hr.bo.IPositionBaseBo;
import com.wyzz.hr.spring.SpringBeanFactory;

public class ShowPbManagePageAction extends BaseAction {

	public ShowPbManagePageAction() {
		nodeList = new ArrayList();
	}

	public String showPbManagePage() {
		IDepartmentBO deptBo = (IDepartmentBO) SpringBeanFactory
				.getBean("departmentBO");
		List activeDepts = deptBo.setDeptOfNodeList(nodeList, 0);
		IPositionBaseBo pbBo = (IPositionBaseBo) SpringBeanFactory
				.getBean("positionBaseBo");
		pbBo.setPbOfNodeList(activeDepts, nodeList, 1);
		return "success";
	}

	public List getNodeList() {
		return nodeList;
	}

	public void setNodeList(List nodeList) {
		this.nodeList = nodeList;
	}

	private static final long serialVersionUID = 1L;
	private List nodeList;
}
